<form action="/${orgi}/design/query/measuregroupedito/${reportid!''}/${modelid!''}.html" data-toggle="ajax-form"  method="post" id="mainForm">
<div class="artCon">
	<div class="middleArt">
		<div class="artMain">
			<div class="mainTop row-fluid" style="padding-bottom:0px;">
				<div class="span3"><h3>名称：</h3></div>
				<div class="span3" style="display:inline-flex;">
					<input type="text" name="name" value="${group.name!''}">
					<input type="hidden" name="id" value="${group.id!''}">
				</div>
			</div>
			<div class="mainTop row-fluid" style="padding-bottom:0px;">
				<div class="span3"><h3>分组类型：</h3></div>
				<div class="span8">
					<label><input type="radio" value="measure" checked="checked" onclick="change_tab(this)" name="grouptype">指标</label>
					<label><input type="radio" value="mdx" onclick="change_tab(this)" name="grouptype">自定义</label>
				</div>
			</div>
			<div id="measure_div" class="mainTop row-fluid" style="padding-bottom:0px;">
				<div class="span3"></div>
				<div class="span8">
					<div class="tableScrollWrap" style="height: 100px;">
						 <table class="table_style_1 table-bordered">
							<thead>
								<tr>
									<th style="width:20px;">&nbsp;</th>
									<th style="width:50%">原名称</th>
									<th>显示名称</th>
								</tr>
							</thead>
							<tbody>
								<#if group.measures??>
									<#list group.measures as measure>
									<tr>
										<td style="height:20px !important;width:20px;"><input checked="checked"  value="${measure.measureid!''}" type="checkbox" name="measureid"> </td>
										<td style="height:20px !important;width:50%">${measure.oldname!''}<input value="${measure.oldname!''}" type="hidden" name="oldname_${measure.measureid!''}"></td>
										<td style="height:20px !important;"><input style="width:100px;" value="${measure.newname!''}" type="text" name="newname_${measure.measureid!''}"></td>
									</tr>
									
									</#list>
								</#if>
								
							</tbody>
						</table>
					</div>
				</div>
			</div>
			<div id="mdx_div" class="mainTop row-fluid" style="padding-bottom:0px;display:none;">
				<div class="span3"><h3>MDX：</h3></div>
				<div class="span8">
					<textarea name="mdx" style="width: 300px;height:100px;">${group.mdx!''}</textarea>
				</div>
			</div>
		</div>
		<div class="bottomBg">
			<div class="btnWrap">
				<input type="submit" class="subButtonStyle" value="确认"/>
				<input type="button" onclick="closeR3ArtDialog()" class="cancelButtonStyle" value="取消"/>
			</div>
		</div>
	</div>
</div>
</form>
<script>
function change_tab(obj){
	if($(obj).val()=="mdx"){
		$("#mdx_div").css("display","");
		$("#measure_div").css("display","none");
	}else{
		$("#mdx_div").css("display","none");
		$("#measure_div").css("display","");
	}
}
</script>